package com.itheima.count.service.impl;

import com.itheima.count.dao.ICountDao;
import com.itheima.count.dao.impl.CountDaoImpl;
import com.itheima.count.service.ICountService;
import com.itheima.domain.Student;
import com.itheima.factory.Factory;

import java.io.IOException;
import java.util.ArrayList;

public class CountServiceImpl implements ICountService {
    ICountDao countDao= Factory.getICountDao();

    public CountServiceImpl() throws Exception {
    }

    @Override
    public ArrayList<Student> getlist() throws IOException, ClassNotFoundException {

        return countDao.getlist();
    }
}
